package cn.kgc.music.service.impl;

import cn.kgc.music.dao.UserMapper;
import cn.kgc.music.pojo.User;
import cn.kgc.music.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("userService")
public class UserServiceImpl implements UserService {
    @Resource
    UserMapper userMapper;
    @Override
    public User login(String usercode,String password) {
        return userMapper.select(usercode,password);
    }

    @Override
    public int adduser(User user) {
        return userMapper.adduser(user);
    }
}
